package com.coder520.dao;

import com.coder520.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsernameAndPassword(@Param("username") String username,@Param("password") String password);

    User selectByUsername(String username);

    //查询今天没有打卡的人
    List<Long> selectNoColum();
    //查询打卡的人

    List<User> selectColum();

    List<User> selectUserAll(@Param("roleid") Long roleid);
}